{include file="public/header" /}
<script src="__JS__/bootstrap/bootstrap-table-v1.18.0/bootstrap-table.js"></script>
<script src="__JS__/bootstrap/bootstrap-table-v1.18.0/locale/bootstrap-table-zh-CN.min.js"></script>
<link href="__SKIN__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="__JS__/tableExport.js"></script>
<body >
<div class="layui-fluid">
    <div class="layui-card" >
		<blockquote class="layui-elem-quote">
            收藏
        </blockquote>
        <div class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="layadmin-userfront-formlist">
            <form id='searchform' role="form" method="get" class="form-inline pull-right">
				&nbsp;&nbsp;<button  type="button" class="layui-btn" data-type="search" id="search">搜索</button>
			</form>
        </div>
		<div id="toolbar" style="padding-bottom: 10px;">
			{$toolbar}
            <button type="button" class="layui-btn fileUpload" id="fileUpload" style="display: none"><i class="layui-icon"></i>导入</button>
		</div>
        <table id="listTable" class="layui-table table">
            <thead>
                <tr>
					<th data-field='id'  data-formatter='' >序号</th>
<th data-field='my_id'  data-formatter='' >用户ID</th>
<th data-field='product_id'  data-formatter='' >商品ID</th>
                    <th data-field="operate">操作</th>
                </tr>
            </thead>
        </table>
    </div>
</div>
<script src="__JS__/layui/layui.all.js"></script>
<script src="__JS__/ImportAndExport.js"></script>
    <script type="text/javascript">
        function importData() {
            $(".fileUpload").click()
        }
        var $table = $('#listTable');
        var tablename="{$tabblename}";
        var pagnum;//原始配置分页显示数量，导入导出需要使用到
        var downpath = "{:url('Importexcel/downExcelTemplate')}";//模板下载地址
        var importpath = "{:url('Importexcel/tableImoprt')}";//导入
		var nowurl = "{$nowurl}";//数据加载地址
        $(function () {
            loaddata("{$nowurl}",1,"listTable");
            $("#search").click(function (e) {
                loaddata("{$nowurl}",1,"listTable");
            });
            layUpload();
        });
    	 function showlayerwin(furl,fwidth,fheight)
	  {
				var layerindex=layer.open({
				type: 2,
				content:furl,
				area:[fwidth,fheight],
				});
                      }
    </script>
</body>
</html>